# 返回该数的所有约数

import random

def ff(a):
    for i in range(1,a):
        if a%i == 0:
            print(i)



# 随机 盈亏比 胜率
def q():
    # 本金
    qm = 200000
    m = qm
    # 涨停收益
    a = 1.05
    # 回撤损失
    b = 0.92
    # 胜率
    qe = 0.9

    for j in range(30):
        for i in range(10):
            ra = round(random.random(), 2)
            if ra > (1-qe):
                m = m*a
            else:
                m = m*b
        print("第{}轮: 总zb：{}".format(str(j), str(m)))
        m = qm
q()